package com.touni.designpattern.decoratorpattern;

import com.touni.designpattern.decoratorpattern.inter.Shape;

/**
 * @ClassName : ShapeDecorator
 * @Description :
 * @Author : lwq
 * @Date: 2020-11-12 11:09
 */
public abstract class ABShapeDecorator implements Shape{
    protected Shape decoratorShape;

    public ABShapeDecorator(Shape shape){
        this.decoratorShape = shape;
    }

    @Override
    public void draw() {
        decoratorShape.draw();
    }
}
